package be.jas.mvc.base.model.fam;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: jasmien
 * Date: 12/08/13
 * Time: 13:23
 * To change this template use File | Settings | File Templates.
 */
public class FamComposition extends AbstractReasoner {

    private Boolean mandatory;

    public FamComposition(String id, String description) {
        super(id, description);
    }

    public FamComposition(Boolean mandatory) {
        this("","");
        this.mandatory = mandatory;
    }

    public Boolean getMandatory() {
        return mandatory;
    }

    public String toString(String prefix){
        String ret = prefix + (mandatory ? "mandatory" : "optional") + " composition " + super.toString(prefix + "\t") + "\n";
        return ret;

    }
}
